package com.example.api.dto;

public enum ResStatusCode {

    SIGNUP_ERROR(5000,"已注册"),
    CAPTCHA_IMAGE_ERROR(5001,"验证码错误"),
    SMS_CHECK_ERROR(5002,"短信验证码不正确"),
    CATEGORY_QUERY_ERROR(6001,"分类查询错误"),
    BANNER_QUERY_ERROR(7001,"Banner 查询错误"),
    COURSE_QUERY_LIST_ERROR(8001,"课程列表查询错误"),
    COURSE_QUERY_ERROR(8002,"课程查询错误"),
    COURSE_LESSON_QUERY_ERROR(8003,"课程课时查询错误"),
    COURSE_ORDER_ERROR(8004,"课程课时查询错误");

    private Integer code;
    private String message;

    private ResStatusCode(Integer code,String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
